﻿using System;
using System.Globalization;

namespace NPMonitor.Web
{
    public partial class Layout : System.Web.UI.MasterPage
    {
        protected override void OnInit(EventArgs e)
        {
            Page.UICulture = "en-GB";
            Page.Culture = "en-GB";
        }
        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public string FunctionName
        {
            get
            {
                BasePage basePage= Page as BasePage;
                if(basePage==null)
                    return "";
                return basePage.FunctionName;
            }
        }

        public string CurrentUser
        {
            get
            {
                BasePage basePage = Page as BasePage;
                if (basePage == null)
                    return "";
                return basePage.CurrentUser;
            }
        }

        protected void lbtnLogout_Click(object sender, EventArgs e)
        {
            BasePage basePage = Page as BasePage;
            if (basePage != null)
                basePage.FormSingout();
        }
    }
}